import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Index from '@/components/Index'
import Test from '@/components/Test'
import Upload from '@/components/FileUpload'
import ViewResource from "vue-resource"
import Panel from "@/views/ef/panel"
import Kgshow from "@/components/Kgshow"
import KGfinish from "@/components/KGfinish"
import MyGraph from "@/components/MyGraph"

import NonStructureSelect from "@/components/NonStructureSelect"
import DialogueSelect from "@/components/dialogue/selectDialogue"
import UploadDialogue from "@/components/dialogue/UploadDialogue"
import DialogueAnalyze from "@/components/dialogue/dialogueAnalyze"
import DialogueKgshow from "@/components/dialogue/dialogueKgshow"

import RecordDialogue from "@/components/record/recordDialogue"
import RecordLoad from "@/components/record/recordLoad"
import RecordAnalysis from "@/components/record/recordAnalysis"


import StructureSelect from "@/components/StructureSelect"
import Upload_Disease from "@/Disease-Build-components/Upload"
import Panel_Disease from "@/views-Disease/ef/panel"
import Create_Loading from "@/Disease-Build-components/CreateLoading"
import Kgfinish_Disease from "@/Disease-Build-components/KGfinish"
import Kgshow_Disease from "@/Disease-Build-components/Kgshow"
import Ner from "@/components/NER"
import MainApp from '@/components/MainApp'
import QA from '@/components/QA'


Vue.use(Router)
Vue.use(ViewResource)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Main',
      component: MainApp,
      redirect: {name: "Index"},
      children:[
        {
          path:'/welcome',
          name:'Index',
          component: Index,
        },
        {
          path:'/test',
          name:'Test',
          component:Test,
        },
        {
          path:'/select',
          name:'StructureSelect',
          component: StructureSelect,
        },
        {
          path:'/nonstructure',
          name:'NonStructureSelect',
          component: NonStructureSelect,
        },
        {
          path:'/dialogue-select',
          name:'DialogueSelect',
          component: DialogueSelect,
        },
        {
          path:'/upload-dialogue',
          name:'UploadDialogue',
          component: UploadDialogue,
        },
        {
          path:'/dialogue-analyze',
          name:'DialogueAnalyze',
          component: DialogueAnalyze,
        },
        {
          path:'/dialogue-kgshow',
          name:'DialogueKgshow',
          component: DialogueKgshow,
        },
        {
          path:'/mygraph',
          name:'MyGraph',
          component: MyGraph,
        },
        {
          path:'/ner',
          name:'Ner',
          component: Ner,
        },
        {
          path:'/qa',
          name:'QA',
          component: QA,
        },
        {
          path:'/uploadDisease',
          name:'Upload_Disease',
          component: Upload_Disease,
        },
        {
          path: '/upload',
          name: 'Upload',
          component: Upload
        },
        {
          path:'/panel',
          name:'Panel',
          component: Panel,
        },
        {
          path:'/kgshow',
          name:'Kgshow',
          component: Kgshow,
        },
        {
          path:'/kgfinish',
          name:'KGfinish',
          component: KGfinish,
        },
        {
          path:'/panelDisease',
          name:'Panel_Disease',
          component: Panel_Disease,
        },
        {
          path:'/kgshowDisease',
          name:'Kgshow_Disease',
          component: Kgshow_Disease,
        },
        {
          path:'/createloading',
          name:'Create_Loading',
          component:  Create_Loading,

        },
        {
          path:'/kgfinishDisease',
          name:'Kgfinish_Disease',
          component: Kgfinish_Disease,
        },
        {
          path:'/recordDialogue',
          name:'Record_Dialogue',
          component: RecordDialogue,
        },
        {
          path:'/recordLoad',
          name:'Record_Load',
          component: RecordLoad,
        },
        {
          path:'/recordAnalysis',
          name:'Record_Analysis',
          component: RecordAnalysis,
        },
      ]
    },
    

  ]
})
